home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 481a.lha / AMIGA C MANUAL_v2.00 / CMAN2.LZH / HintsAndTips / Example3.c < prev    next >
Text File  |  1991-01-27  |  380b  |  16 lines

  1. /* Example 3 */
  2. /* This program will not open any console window if run from */
  3. /* workbench. The disadvantage is of course that you can not */
  4. /* use any "console functions" such as printf().             */
  5.  
  6. void _main();
  7.  
  8. void _main() /* Note the special character in front of main()! */
  9. {
  10.   int loop;
  11.  
  12.   /* Wait for a while: */
  13.   for( loop = 0; loop < 500000; loop++ )
  14.     ;
  15. }
  16.